package main

import "fmt"

type Animal interface {
	Speak() string
}

type Dog struct {
}

func (d Dog) Speak() string {
	return "woof"
}

type Cat struct {
}

func (c Cat) Speak() string {
	return "meow"
}
func MaskSound(animal Animal) {
	fmt.Println(animal.Speak())
}

func main() {
	MaskSound(Dog{})
	MaskSound(Cat{})
}
